import { createStore } from "vuex";

export default createStore({
  state: {
    isIframe : false
  },
  mutations: {
		// 是否是嵌入的页面
		setIsIframe(state, satateVal) {
			state.isIframe = satateVal
		},
  },
  actions: {
    changeIframe({ commit }, stateVal) {
			try {
				commit('setIsIframe', stateVal)
			} catch (error) {
				console.log(error, '异常')
			}
		}
  },
  modules: {},
});
